package com.forenow.demo.demo10;

public class ClassA implements InterfaceA {
    @Override
    public int method(int n) {
        int sum=0;
        for (int i = 1; i <n ; i++) {
            sum+=i;
        }
        return sum;
    }
}
